package blog.controller;

import blog.pojo.Collects;
import blog.pojo.ResultVo;
import blog.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author HuLin
 * @date
 */
@RestController
@RequestMapping("/collect")
public class CollectController {
    @Autowired
    private CollectService collectService;

    @PostMapping
    public ResultVo addCollect(@RequestBody Collects collects){
        return collectService.addCollect(collects);
    }
}
